<div
	class="topbar-container"
	ng-include="'views/includes/topbar.html'"
	ng-init="titleSection='Email Notifications'; goBackToState = true">
</div>


<div class="content preferences" ng-controller="preferencesEmailController as prefEmail">

	<h4></h4>
	<div class="onGoingProcess" ng-show="prefEmail.saving && !index.isOffline">
		<div class="onGoingProcess-content">
			<div class="spinner">
				<div class="rect1"></div>
				<div class="rect2"></div>
				<div class="rect3"></div>
				<div class="rect4"></div>
				<div class="rect5"></div>
			</div>
			<span translate>Saving preferences...</span>
		</div>
	</div>


	<form name="emailForm" ng-submit="prefEmail.save(emailForm)" class="columns" novalidate ng-init="prefEmail.email = index.preferencesGlobal.preferencesEmail">
		<div class="box-notification" ng-show="prefEmail.error">
      		<span class="text-warning size-14">
        		{{prefEmail.error|translate}}
      		</span>
		</div>

		<label translate>Email for wallet notifications</label>
		<input type="email" id="email" name="email" ng-model="prefEmail.email" required>
		<input type="submit" class="button expand black round" value="{{'Save'|translate}}"
			   ng-style="{'background-color':index.backgroundColor}"
			   ng-disabled="emailForm.$invalid && !index.preferencesGlobal.preferencesEmail">
	</form>

	<div class="text-gray size-12 text-center" translate>
		Setting up email notifications could weaken your privacy, if the wallet service provider is compromised. Information available to an attacker would include your wallet addresses and its balance, but no more.
	</div>
</div>

<div class="extra-margin-bottom"></div>
